<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>轮回之牢: Printer&lt; FUN_RET_TYPE, FUN_ARGS &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">轮回之牢<span id="projectnumber">&#160;0.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_printer-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">Printer&lt; FUN_RET_TYPE, FUN_ARGS &gt; 模板类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>打印器  
 <a href="class_printer.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_decorator_8h_source.html">Decorator.h</a>&gt;</code></p>
<div class="dynheader">
类 Printer&lt; FUN_RET_TYPE, FUN_ARGS &gt; 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_printer__inherit__graph.png" border="0" usemap="#a_printer_3_01_f_u_n___r_e_t___t_y_p_e_00_01_f_u_n___a_r_g_s_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="a_printer_3_01_f_u_n___r_e_t___t_y_p_e_00_01_f_u_n___a_r_g_s_01_4_inherit__map" id="a_printer_3_01_f_u_n___r_e_t___t_y_p_e_00_01_f_u_n___a_r_g_s_01_4_inherit__map">
<area shape="rect" title="打印器" alt="" coords="5,95,180,136"/>
<area shape="rect" href="class_decorator.html" title=" " alt="" coords="10,5,175,47"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<div class="dynheader">
Printer&lt; FUN_RET_TYPE, FUN_ARGS &gt; 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="class_printer__coll__graph.png" border="0" usemap="#a_printer_3_01_f_u_n___r_e_t___t_y_p_e_00_01_f_u_n___a_r_g_s_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="a_printer_3_01_f_u_n___r_e_t___t_y_p_e_00_01_f_u_n___a_r_g_s_01_4_coll__map" id="a_printer_3_01_f_u_n___r_e_t___t_y_p_e_00_01_f_u_n___a_r_g_s_01_4_coll__map">
<area shape="rect" title="打印器" alt="" coords="5,95,180,136"/>
<area shape="rect" href="class_decorator.html" title=" " alt="" coords="10,5,175,47"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a539fa6107aa1b375841741bcd46872a7"><td class="memItemLeft" align="right" valign="top"><a id="a539fa6107aa1b375841741bcd46872a7" name="a539fa6107aa1b375841741bcd46872a7"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Printer</b> (std::function&lt; FUN_RET_TYPE(FUN_ARGS...)&gt; p_func)</td></tr>
<tr class="separator:a539fa6107aa1b375841741bcd46872a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a935874c080d1915a2bda620164e1dde9"><td class="memItemLeft" align="right" valign="top">FUN_RET_TYPE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_printer.html#a935874c080d1915a2bda620164e1dde9">operator()</a> (FUN_ARGS...args) override</td></tr>
<tr class="separator:a935874c080d1915a2bda620164e1dde9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_decorator"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_decorator')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_decorator.html">Decorator&lt; FUN_RET_TYPE, FUN_ARGS... &gt;</a></td></tr>
<tr class="memitem:aa0bd735603f89d72dc6e2344ec91a6c0 inherit pub_methods_class_decorator"><td class="memItemLeft" align="right" valign="top"><a id="aa0bd735603f89d72dc6e2344ec91a6c0" name="aa0bd735603f89d72dc6e2344ec91a6c0"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Decorator</b> (const std::function&lt; FUN_RET_TYPE(FUN_ARGS...)&gt; &amp;p_func)</td></tr>
<tr class="separator:aa0bd735603f89d72dc6e2344ec91a6c0 inherit pub_methods_class_decorator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01352796d3209df0be7c51c2a729d636 inherit pub_methods_class_decorator"><td class="memItemLeft" align="right" valign="top"><a id="a01352796d3209df0be7c51c2a729d636" name="a01352796d3209df0be7c51c2a729d636"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Decorator</b> (FUN_RET_TYPE(*p_func)(FUN_ARGS...))</td></tr>
<tr class="separator:a01352796d3209df0be7c51c2a729d636 inherit pub_methods_class_decorator"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pro_attribs_class_decorator"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_decorator')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="class_decorator.html">Decorator&lt; FUN_RET_TYPE, FUN_ARGS... &gt;</a></td></tr>
<tr class="memitem:aef323d6e7285de5d3ef10cdf899db7eb inherit pro_attribs_class_decorator"><td class="memItemLeft" align="right" valign="top"><a id="aef323d6e7285de5d3ef10cdf899db7eb" name="aef323d6e7285de5d3ef10cdf899db7eb"></a>
std::function&lt; FUN_RET_TYPE(FUN_ARGS...)&gt;&#160;</td><td class="memItemRight" valign="bottom"><b>decorated_func</b></td></tr>
<tr class="separator:aef323d6e7285de5d3ef10cdf899db7eb inherit pro_attribs_class_decorator"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename FUN_RET_TYPE, typename ... FUN_ARGS&gt;<br />
class Printer&lt; FUN_RET_TYPE, FUN_ARGS &gt;</div><p >打印器 </p>
<dl class="tparams"><dt>模板参数</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">FUN_RET_TYPE</td><td></td></tr>
    <tr><td class="paramname">FUN_ARGS</td><td></td></tr>
  </table>
  </dd>
</dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a935874c080d1915a2bda620164e1dde9" name="a935874c080d1915a2bda620164e1dde9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a935874c080d1915a2bda620164e1dde9">&#9670;&nbsp;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename FUN_RET_TYPE , typename ... FUN_ARGS&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">FUN_RET_TYPE <a class="el" href="class_printer.html">Printer</a>&lt; FUN_RET_TYPE, FUN_ARGS &gt;::operator() </td>
          <td>(</td>
          <td class="paramtype">FUN_ARGS...&#160;</td>
          <td class="paramname"><em>args</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >在这里实现装饰器的基本功能 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">args</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

<p>实现了 <a class="el" href="class_decorator.html#a032f3839acef23c4081158aacd157f16">Decorator&lt; FUN_RET_TYPE, FUN_ARGS... &gt;</a>.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Utils/Decorators/<a class="el" href="_decorator_8h_source.html">Decorator.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
